<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>EBVRImagePicker Class Reference</title>

	<link rel="stylesheet" href="../css/style.css">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
	<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
	<header>
		<div class="container" class="hide-in-xcode">
			
			<h1 id="library-title">
				<a href="../index.html">EBVR </a>
			</h1>

			<p id="developer-home">
				<a href="../index.html">Buyforyou</a>
			</p>
			
		</div>
	</header>

	<aside>
		<div class="container">
			<nav>
				<ul id="header-buttons" role="toolbar">
					<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>

					<li id="on-this-page" role="navigation">
						<label>
							On This Page

							<div class="chevron">
								<div class="chevy chevron-left"></div>
								<div class="chevy chevron-right"></div>
							</div>

							<select id="jump-to">
	<option value="top">Jump To&#133;</option>
	

	
	
	<option value="tasks">Tasks</option>
	
	

	
	

	

	
	<optgroup label="Instance Methods">
		
		<option value="//api/name/imageCompressForWidth:targetWidth:">- imageCompressForWidth:targetWidth:</option>
		
		<option value="//api/name/removeCachePictureByPath:">- removeCachePictureByPath:</option>
		
		<option value="//api/name/removeCachePictures">- removeCachePictures</option>
		
		<option value="//api/name/saveImageToCaches:isCompress:">- saveImageToCaches:isCompress:</option>
		
		<option value="//api/name/selectImage:success:fail:">- selectImage:success:fail:</option>
		
	</optgroup>
	
	
</select>
						</label>
					</li>
				</ul>
			</nav>
		</div>
	</aside>

	<article>
		<div id="overview_contents" class="container">
			<div id="content">
				<main role="main">
					<h1 class="title">EBVRImagePicker Class Reference</h1>

					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<th>Inherits from</th>
	<td>NSObject</td>
</tr><tr>
	<th>Declared in</th>
	<td>EBVRImagePicker.h<br />EBVRImagePicker.m</td>
</tr>
						</tbody></table></div>
					

                    

					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						

						
						<h2 class="task-title">Other Methods</h2>

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/selectImage:success:fail:" title="selectImage:success:fail:"></a>
	<h3 class="method-title"><code><a href="#//api/name/selectImage:success:fail:">&ndash;&nbsp;selectImage:success:fail:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>选择图片，相机或相册</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)selectImage:(int)<em>type</em> success:(SuccessCallback)<em>success</em> fail:(FailCallback)<em>failure</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>type</code></th>
						<td><p>0&ndash;相机 1&ndash;相册 2&ndash;相机和相册</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>success</code></th>
						<td><p>成功回调</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>failure</code></th>
						<td><p>失败回调</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>选择图片，相机或相册</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">EBVRImagePicker.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/saveImageToCaches:isCompress:" title="saveImageToCaches:isCompress:"></a>
	<h3 class="method-title"><code><a href="#//api/name/saveImageToCaches:isCompress:">&ndash;&nbsp;saveImageToCaches:isCompress:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>缓存图片</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (NSString *)saveImageToCaches:(UIImage *)<em>image</em> isCompress:(BOOL)<em>isCompress</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>image</code></th>
						<td><p>图片</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>isCompress</code></th>
						<td><p>是否压缩</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>结果</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>缓存图片</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">EBVRImagePicker.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/removeCachePictureByPath:" title="removeCachePictureByPath:"></a>
	<h3 class="method-title"><code><a href="#//api/name/removeCachePictureByPath:">&ndash;&nbsp;removeCachePictureByPath:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>删除指定的缓存的图片</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (BOOL)removeCachePictureByPath:(NSString *)<em>path</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>path</code></th>
						<td><p>缓存路径</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>是否删除成功</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>删除指定的缓存的图片</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">EBVRImagePicker.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/removeCachePictures" title="removeCachePictures"></a>
	<h3 class="method-title"><code><a href="#//api/name/removeCachePictures">&ndash;&nbsp;removeCachePictures</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>删除全部缓存的图片</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (BOOL)removeCachePictures</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>是否删除成功</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>删除全部缓存的图片</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">EBVRImagePicker.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						

						
						<h2 class="task-title">Other Methods</h2>

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/imageCompressForWidth:targetWidth:" title="imageCompressForWidth:targetWidth:"></a>
	<h3 class="method-title"><code><a href="#//api/name/imageCompressForWidth:targetWidth:">&ndash;&nbsp;imageCompressForWidth:targetWidth:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>压缩图片尺寸</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (UIImage *)imageCompressForWidth:(UIImage *)<em>sourceImage</em> targetWidth:(CGFloat)<em>defineWidth</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>sourceImage</code></th>
						<td><p>原图</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>defineWidth</code></th>
						<td><p>目标宽度</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>压缩后的</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>压缩图片尺寸</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">EBVRImagePicker.m</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						
					</div>
					
					

                    
                    
          
				</main>

				<footer>
					<div class="footer-copyright">
						
						<p class="copyright">Copyright &copy; 2017 Buyforyou. All rights reserved. Updated: 2017-07-27</p>
						
						
						<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
						
					</div>
				</footer>
			</div>
		</div>
	</article>

	<script src="../js/script.js"></script>
</body>
</html>